home *** CD-ROM | disk | FTP | other *** search
- BCB.ASM for Concurrent DOS
- by Howard Vigorita, NYACC
-
- BCB is a diagnostic utility for use under Concurrent DOS. It has
- been written as a learning experience and exploring expedition
- into Concurrent DOS's disk buffering scheme.
-
- BCB starts off by locating the SYSDAT structure and displays its
- address on the screen. From there it moves on to the XIOS header
- from which it copies and displays the disk parameter header (DPH)
- addresses for all of the disk drives. All addresses are shown in
- hexedecimal.
-
- The DPH is then used to locate three more structures. The addresses
- of each drive's disk pararameter block (DPB) are read and displayed
- as well as the addresses of the directory and disk data buffer
- control block headers (BCBH).
-
- From the BCBH's, the maximum number of buffer control blocks (BCB's)
- per process is shown. Then the buffer control block list root, which
- points to the first in a chain of BCB's, is used to trace and count
- the total number of BCB's available. While the tracing is being done,
- the high and low addresses of the BCB linked list are recorded and
- displayed. As each BCB is visited, the high and low addresses of the
- actual buffers themselves are also recorded and displayed. Note that
- for directory buffers, all BCB's, DPH's, and DPB's, the addresses are
- recorded as offsets from SYSDAT, while for disk data buffers they are
- absolute segment locations. Thus directory buffers and all BCB's must
- lie within the 64K SYSDAT segment, but disk data buffers need not.
-
- The information displayed by this utility has proven helpful in
- using the SID debugger for further exploration. It should also
- prove useful in writing additional utilities to fine tune the buffer
- action.